import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../views/Login.vue'
import Index from '../views/Index.vue'

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        name: 'login',
        component: Login
    },
    {
        path: '/index',
        name: 'index',
        component: Index
    },
    {
        path: '/initiate',
        name: 'initiate',
        component: () => import('../views/Initiate.vue')
    },
    {
        path: '/UnderTake',
        name: 'UnderTake',
        component: () => import('../views/UnderTake.vue')
    },
    {
        path: '/Delegate',
        name: 'Delegate',
        component: () => import('../views/Delegate.vue')
    },
    {
        path: '/ClientsContractManagement',
        name: 'ClientsContractManagement',
        component: () => import('../views/ClientsContractManagement.vue')
    },
    {
        path: '/CarrierContractManagement',
        name: 'CarrierContractManagement',
        component: () => import('../views/CarrierContractManagement.vue')
    }
]

const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
})

export default router